import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: "/index"
  },
  {
    path: '/index',
    name: '测试首页',
    component: () => import("../pages/index")
  },
  {
    path: '/dataManager',
    name: '数据管理',
    component: () => import("../pages/dataManager")
  }
]

const router =  new VueRouter({
  mode: 'history',
  routes
})


export default router